package com.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.ArticlesEntity;
import com.entity.JiankangdanganEntity;
import com.entity.view.ArticlesView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 健康档案
 *
 */
public interface ArticlesDao  extends BaseMapper<ArticlesEntity> {
//    List<ArticlesView> selectListView(@Param("ew") Wrapper<ArticlesEntity> ew);

//    ArticlesView selectView(@Param("ew") Wrapper<ArticlesEntity> ew);

    String getMaxId();

    ArticlesView selectView(@Param("wrapper") Wrapper<ArticlesEntity> wrapper);

    List<ArticlesView> selectListView(Pagination page, @Param("ew") Wrapper<ArticlesEntity> wrapper);
    List<ArticlesView> selectListView(@Param("wrapper") Wrapper<ArticlesEntity> wrapper);

    ArticlesEntity getDetails(@Param("id") String id);

    List<ArticlesView> selectListBytitle(@Param("title")  String title);
}

